<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">短信管理</block>
<block name="controller">短信管理（漫道）</block>
<block name="action">短信管理</block>
<block name="desc"></block>
<block name="content">
	<div class="box box-primary">
		<div class="box-header with-border">
			<h3 class="box-title">短信列表</h3>
			<div class="box-tools">
				<form class="form-horizontal" action="{:U('page')}" method="get">
					<div class="input-group input-group-sm col-sm-2 pull-right">
						<div class="input-group-btn">
							<button type="button" class="btn btn-default" rel-url="{:U('form')}" rel-action="dialog">
								新建短信
							</button>
						</div>
						<input type="text" name="search" value="{$search}" class="form-control" placeholder="请输入关键字" autocomplete="off">
						<div class="input-group-btn">
							<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<div class="box-body table-responsive">
			<table class="table table-bordered table-striped table-hover">
				<tbody>
				<notempty name="data">
					<tr>
						<th class="text-center">编号</th>
						<th class="text-center">手机号</th>
						<th class="text-center">模板</th>
						<th class="text-center">请求时间</th>
						<th class="text-center">发送完成时间</th>
						<th class="text-center">状态</th>
						<th class="text-center">操作</th>
					</tr>
					<volist name='data' id='items'>
						<tr>
							<td class="text-center">{$items.message_id}</td>
							<td class="text-center">{$items.message_mobile}</td>
							<td class="text-center">{$items.template}</td>
							<td class="text-center">{$items.message_create_time}</td>
							<td class="text-center">{$items.message_time}</td>
							<td class="text-center">{$items.state}</td>
							<td class="text-center">
								<a href="{$items.detail}" rel-action="dialog">详情</a>
							</td>
						</tr>
					</volist>
					<else />
					<tr><td>暂无符合条件记录</td></tr>
				</notempty>
				</tbody>
			</table>
		</div>
		<notempty name="data">
			<div class="box-footer clearfix">
				{$page}
			</div>
		</notempty>
	</div>
</block>